<%-- 
    Document   : index
    Created on : 18/10/2011, 18:13:51
    Author     : KOMATSU
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    
    <body>
        <style type="text/css">
@import "css/kohcss.css";

</style>
    <div id="container"><div id="content">
        <%@include file="topoIndex.jsp" %>
        <%@ page import="br.objetos.*, java.util.*" %>
        <table border="2" cellspacing="5" cellpadding="5" width="300px" style="border-color: orange" align="center">
            <tr>
                <th align="center">
                    <h1>Sign in </h1>
                     <form action="logarDo.jsp" method="post">
                        <table border="0" cellspacing="2">
                           
                            <tr>
                                <th align="right">Username: </th>
                                <th><input type="text" name="username" size="20"><th/>
                            </tr>
                            <tr>
                                <th align="right">Senha: </th>
                                <th><input type="password" name="senha" size="20"><th/>
                            </tr>
                           
                            <tr>
                                <th></th>
                                <th><input type="submit" value="Entrar" /></th>
                            </tr>
                            <tr>
                                <th></th>
                                <th> 
                                <%
                                    UsuarioMetodos u = new UsuarioMetodos();
                                    if (request.getParameter("inserted") != null) {
                                        u = (UsuarioMetodos)session.getAttribute("usuario");

                                    }
                                    if (u.getMensagem().equals("ERRO_LOGIN") || 
                                            u.getMensagem().equals("ERRO_SENHA")) {
                                %>
                                    <p>Login ou senha invalido.</p>
                                    <%
                                        }
                                    %>
                                
                                </th>
                            </tr>
                            
                        </table>
                         
                    </form>
                </th>
            </tr>
        </table>
    </div>
        <div id="footer" align="center"><%@include file="footer.jsp" %></div>
</div>
    </body>
</html>
